home *** CD-ROM | disk | FTP | other *** search
- Path: holly.ACNS.ColoState.EDU!not-for-mail
- From: corbyh@holly.ACNS.ColoState.EDU (Corby S. Hudnall)
- Newsgroups: comp.lang.c++
- Subject: Re: Anyone Using g++ With C++ Templates?
- Date: 27 Feb 1996 21:27:19 -0700
- Organization: Colorado State University, Fort Collins, CO 80523
- Message-ID: <4h0lj7$umc@holly.ACNS.ColoState.EDU>
- References: <4grmfq$cs7@digital.netvoyage.net>
- NNTP-Posting-Host: holly.acns.colostate.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Abu Wawda (abu@digital.netvoyage.net) wrote:
-
- : I simply can't get my files to compile with g++, so please help. I have
- : this problem only with C++ programs using templates. I have three files:
- : list.h, list.C, and sample.C. list.h contains the declarations for my list
- : class (which uses templates). list.C includes list.h and implements the
- : class. sample.C includes list.h and is a sample that creates a list object
- : and does a few things with it. This is how I compile them:
-
- : g++ -c sample.C
- : g++ -c list.C
- : g++ sample.o list.o
-
- Which verison of g++ are you using. I think I remember hearing that only the
- newer version (2.7.+) support templates. Don't quote me on that though.
- That's just what I heard.
-
- // ------------ BEGIN SIGNATURE ---------------
- #include <iostream.h>
- void main()
- {
- cout<<"\aName:\tCorby S. Hudnall\n";
- cout<<"School:\tColorado State University\n";
- cout<<"EMail\tcorbyh@holly.colostate.edu\n";
- cout<<"URL\thttp://holly.colostate.edu/~corbyh/\n";
- }
- // ------------- END SIGNATURE ----------------
-
-